﻿using UnityEngine;
using System.Collections;

public class User
{
    public string username;
    public int hp;
}
/// <summary>
/// 数据实体类，存储数据
/// </summary>
public class UserData
{
    public string username;
    public Color color;
    public Vector3 pos;

    public UserData(string usernamse, Color color)
    {
        this.username = usernamse;
        this.color = color;
    }
    public UserData(string username, Vector3 pos)
    {
        this.username = username;
        this.pos = pos;
    }
    public UserData(string username, Color color,Vector3 pos)
    {
        this.username = username;
        this.pos = pos;
    }
}


public class MoveData
{
    public string username;
    public Vector2 direct;//人物移动的9方向中的一个
    public Vector3 position;//人物的位置矫正
    public Vector3 rotation;//人物旋转矫正
}